package com.yhgm.dao;

import com.yhgm.entity.ImageSearch;
import com.yhgm.pojo.Image;
//import org.springframework.data.elasticsearch.annotations.Query;

import java.util.Date;
import java.util.List;

public interface ImageSearchDao{
//    @Query("{\"bool\": {\"must\": [{\"match\": {\"bodyPart\": \"?0\"}}, "+
//            "{\"range\": {\"acquisitionTime\": {\"gte\": \"?1\", \"lte\": \"?2\"}}},"+
//            " {\"match\": {\"imageFormat\": \"?3\"}}, {\"match\": {\"diagnosisResult\": \"?4\"}}, "+
//            "{\"match\": {\"region\": \"?5\"}}]}}")
    List<Image> customSearch(String bodyPart, Date startTime, Date endTime,
                             String imageFormat, String diagnosisResult, String region);
}
